<?php
/**
 * Created by PhpStorm.
 * User: zhangrxiang
 * Date: 2017/7/20
 * Time: 10:36
 * Project name: PHPTEST
 * File name: 2.php
 * @copyright Copyright (c) 2016 ZRX Software LLC
 * @license https://github.com/zhangrxiang
 * @since 1.0.0
 */

for ( $i = 0; $i < 1000; $i ++ ) {

	//奇数
	if ( $i & 1 ) {
		echo $i . PHP_EOL;
	}
	//偶数
	if ( ! ( $i & 1 ) ) {
		echo $i . PHP_EOL;
	}
}
